package com.test.shiyan2;

public class shuixianhua {
    public static void main(String[] args) {
        int sum= 0;
        for (int i = 100;i<1000;i++){
            int bite = i%10;
            int ten = i/10%10;
            int hundread=i/100;
            if (i==(bite*bite*bite)+
                    (ten*ten*ten)+(hundread*hundread*hundread)){
                System.out.println(i);
                sum++;
            }
        }
        System.out.println("总共有水仙花个数："+sum);
    }
}
